package com.avcdata.core;

import lombok.Data;

@Data
public class Result<T> {
  private boolean success = true;
  private String message;
  private T returnValue;
  private Object times;
  private String secretKey;

  public Result(T returnValue, boolean success, String message, Object times){
    this.returnValue=returnValue;
    this.success = success;
    this.message = message;
    this.times = times;
  }

  public Result(T returnValue, boolean success, String message){
    this(returnValue,success,message,"");
  }

  public Result(T returnValue, boolean success){
    this(returnValue,success,"","");
  }

  public Result(T returnValue){
    this(returnValue,true,"","");
  }

  public Result(T returnValue, String message, boolean success){
    this(returnValue,success,message,"");
  }

  public Result(T returnValue, String message){
    this(returnValue,true,message,"");
  }
}